#ifndef LABEL_H
#define LABEL_H

#include <QWidget>
#include <QLabel>
#include <QDebug>
#include <QMouseEvent>

class Label : public QLabel
{
public:
    Label(QWidget* parent);
    // 重写父类的事件处理函数(函数名、参数类型个数、返回值都要和父类的相同)
    void enterEvent(QEvent *event);

    void leaveEvent(QEvent *event);

    void mousePressEvent(QMouseEvent *event);

    void mouseReleaseEvent(QMouseEvent *event);

    void mouseDoubleClickEvent(QMouseEvent *event);
};

#endif // LABEL_H
